<?php	
class galleryFromDataBase
{
	//properties
	private $imageArray;
	
	public function __construct($eventID)
	{
		$dbHandler = new databaseHandler();
		$this->imageArray = $dbHandler->getImagesForEventID($eventID);
	}
	
	public function printGallery()
	{
		$toEcho = "";
		$toEcho .= '<ul class="photoGallery">';

		foreach($this->imageArray as $value)
		{
			$currentImage = new Image($value);
			$toEcho .= $currentImage->printImage();
		}
		$toEcho .= '</ul>';
		echo $toEcho;
		return;
	}
}

?>